credit2: Handle runqueue changes
authorKeir Fraser <keir@xen.org>
Fri, 24 Dec 2010 08:28:10 +0000 (08:28 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 24 Dec 2010 08:28:10 +0000 (08:28 +0000)
commite8599ead72746ab32bf7ed6f38f3231c650b700a
treecffacab1f1f9de86c4d78f0c5fd7ad239b8985b6
parent8a2042db62dc3f4b7d5e7b54d9b558dfcbfe9c41
credit2: Handle runqueue changes

In preparation for cross-runqueue migration, make changes to make that
more robust.
Changes include:
* An up-pointer from the svc struct to the runqueue it's assigned to
* Explicit runqueue assign/desassings, with appropriate ASSERTs
* cpu_pick will de-assign a vcpu from a runqueue if it's migrating,
and wake will re-assign it

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit2.c